﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Sample16_Default" %>

<%@ Register Src="Cartao.ascx" TagName="Cartao" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <input id="btnSelecionar" type="button" value="Selecionar todos" runat="server" />
                    <input id="btnLimparSelecionados" type="button" value="Limpar selecionados" runat="server" />
                    <asp:Button ID="btnNovo" Text="Novo cartão" runat="server" OnClick="btnNovo_Click" />
                </div>
                <asp:DataList ID="dlCartoes" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
                    OnItemDataBound="dlCartoes_ItemDataBound">
                    <ItemTemplate>
                        <uc1:Cartao ID="Cartao1" runat="server" />
                    </ItemTemplate>
                </asp:DataList>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
